package java_book;

class MyData {
	
	int int_score;
	double double_score;
	double total_score;
	String name;

	public MyData( int i_score ) {
		int_score = i_score;
	}
	
	public MyData( int i_score, double d_score ) {
		int_score = i_score;
		double_score = d_score;
	}
	
	public MyData( int i_score, double d_score, String _name ) {
		int_score = i_score;
		double_score = d_score;
		name = _name;
	}
	
	public void printData() {
		System.out.println("Input name : " + name);
		System.out.println("Input int_Score : " + int_score );
		System.out.println("Input double_Score : " + double_score );
		
		total_score = int_score + double_score;
		System.out.println("Total Score : " + (int_score+double_score));	
		System.out.print("\n\n");
	}

}

public class KyungYeon_homework_20111010 {

	public static void main ( String[] args ){
		
		MyData myData = new MyData(90);
		myData.printData();
		
		MyData myData2 = new MyData(90, 80.99);
		myData2.printData();
		
		MyData myData3 = new MyData(90, 70.88, "KimKyungYeon");
		myData3.printData();
		
	}
}
